<%@ page import="com.util.Constant" %>
<%@ page import="com.pojo.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/3/15
  Time: 15:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <script src="/layui/layui.js"></script>
    <%@include file="head.jsp"%>
</head>
<%
    if(request.getSession().getAttribute(Constant.USER_SESSION) != null) {
        request.getRequestDispatcher("/jsp/allgoods.jsp").forward(request,response);
    }else{
        request.getRequestDispatcher("/jsp/login.jsp").forward(request,response);
    }
%>
<body>

<%--    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="grid-demo grid-demo-bg1" style="text-align: center">
                <button onclick="one()" type="button" class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius layui-bg-orange">大型加圆角</button>
            </div>
        </div>
        <div class="layui-col-xs6">
            <div class="grid-demo" style="text-align: center">
                <button onclick="tow()" type="button" class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius layui-bg-blue">大型加圆角</button>
            </div>
        </div>
    </div>--%>
</body>
<%--<script>
    function one(){
        window.location.href='/jsp/login.jsp'
    }
</script>--%>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        var element = layui.element;

        //…
    });
</script>




</html>
